sbit DIN=P1^0;
sbit DOUT=P1^1;
sbit SCL=P1^2;
sbit RST=P2^2;

void MAX531_send(unsigned int Send_data)
{

    unsigned char i;
    SCL=0 ;
    for(i=0;i<16;i++)
    {
        SCL=0 ;
        DIN=(bit)(Send_data&0x8000);
        Send_data<<=1 ;
        SCL=0 ;
    }
    SCL=0 ;
}





